home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Windoid / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.5 KB  |  56 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef PART_H
  5. #define PART_H
  6.  
  7. //=======================================================================
  8. #ifndef DEFINES_K
  9. #include "Defines.k"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17.  
  18. //=======================================================================
  19. class FW_CPart;
  20. class FW_CMenuBar;
  21. class FW_CMenuEvent;
  22. class FW_CPresentation;
  23. class FW_CFloatingWindow;
  24.  
  25. //=======================================================================
  26. class CWindoidPart : public FW_CPart {
  27. public:
  28.     FW_DECLARE_AUTO(CWindoidPart)
  29.                         CWindoidPart(ODPart* odPart);
  30.     virtual             ~CWindoidPart();
  31. // overrides
  32. protected:
  33.     virtual void         Initialize(Environment* ev);
  34.     virtual FW_CContent* NewPartContent(Environment* ev);
  35.     virtual FW_CFrame*    NewFrame(Environment* ev,
  36.                                  ODFrame* odFrame,
  37.                                  FW_CPresentation* presentation,
  38.                                  FW_Boolean fromStorage);
  39.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  40.                                       FW_CMenuBar* menuBar, 
  41.                                       FW_Boolean hasMenuFocus,
  42.                                       FW_Boolean isRoot);
  43.     virtual FW_Boolean    DoMenu(Environment* ev,
  44.                                const FW_CMenuEvent& theMenuEvent);
  45. // new members
  46. public:
  47.     virtual void         MyMakePalette(Environment* ev, FW_Boolean showWindow);
  48. private:
  49.     FW_CPresentation*    fMainPresentation;
  50.     FW_CPresentation*    fPalettePresentation;
  51.     FW_CFloatingWindow*    fPaletteWindow;
  52. };
  53.  
  54. //=======================================================================
  55. #endif
  56.